package org.codeart.ioc.dao;

import org.codeart.ioc.annotation.Component;
import org.codeart.ioc.pojo.User;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

@Component
public class UserDao {

    public List<User> getUserList() {
        User[] users = {
                new User(1, "洛必达", "艾泽拉斯"),
                new User(2, "欧拉", "铁炉堡"),
                new User(3, "高斯", "诺森德"),
                new User(4, "伯努利", "卡利姆多"),
        };
        return Arrays.stream(users).collect(Collectors.toList());
    }

}
